using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Acme.BookStore.Domain.Entities;
using Volo.Abp.Domain.Repositories;

namespace Acme.BookStore.Repositories
{
    public interface IGongyingRepository : IRepository<Gongying, string>
    {
        Task<List<Gongying>> GetListAsync(
            int skipCount,
            int maxResultCount,
            string sorting,
            string filter = null);
            
        Task<int> GetCountAsync(string filter = null);
        
        Task<List<Gongying>> SearchByNameAsync(
            int skipCount,
            int maxResultCount,
            string sorting,
            string nameKeyword);
            
        Task<int> GetCountByNameAsync(string nameKeyword);
    }
} 